package com.ruoyi.web.domain.warning;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 五情预警通讯录
 * @author fwx
 * @since 2024-01-31 14:08:37
 */
@Data
@TableName("tt_warning_address_book")
@ApiModel(value = "WarningAddressBook对象", description = "五情预警通讯录")
public class WarningAddressBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("通讯录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("联系人姓名")
    @TableField("contact_name")
    @Excel(name = "联系人姓名")
    private String contactName;

    @ApiModelProperty("联系人电话")
    @Excel(name = "联系人电话")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty("联系人邮箱")
    @Excel(name = "联系人邮箱")
    @TableField("contact_email")
    private String contactEmail;

    @ApiModelProperty("0 启用 1 停用")
    @TableField("is_enable")
    private Integer isEnable;

    @TableField("crt_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime crtTime;

}
